package edu.washington.cs.workflow.analysis.guistructure;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * An evaluation-specific helper class for handling
 * */
public class EvaluationHelper {
	
	private static Set<String> skipLabels;
	
	static {
		//all from the jedit subject
		skipLabels = new LinkedHashSet<String>();
		skipLabels.add("Multi File...");
		skipLabels.add("Multifile Search Settings...");
		skipLabels.add("jEdit User Guide ");
		skipLabels.add("Global Options...");
		skipLabels.add("Buffer Options...");
		skipLabels.add("Click radiobutton Search in a directory");
		skipLabels.add("title: Multi File Search Settings,");
		
	}
	
	public static boolean isSkippedGUIElement(String actionStr) {
		for(String label : skipLabels) {
			if(actionStr.indexOf(label) != -1) {
				return true;
			}
		}
		return false;
	}
}